home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / postquel / delete < prev    next >
Encoding:
Text File  |  1992-08-27  |  905 b   |  47 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/delete,v 1.7 1992/07/14 05:54:17 ptong Exp $
  3. .SP DELETE COMMANDS 6/14/90
  4. .XA 2 Delete
  5. .uh NAME
  6. .lp
  7. delete \*- delete instances from a class
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBdelete\fR instance_variable [ \fBfrom\fR from_list ] [ \fBwhere\fR qual ]
  12. .)l
  13. .uh DESCRIPTION
  14. .lp
  15. .b Delete
  16. removes instances which satisfy the qualification,
  17. .i qual ,
  18. from the
  19. class specified by
  20. .i instance_variable .
  21. .i Instance_variable
  22. is either a class name or a variable assigned by
  23. .i from_list .
  24. If the qualification is absent,
  25. the effect is to delete all
  26. instances in the class.
  27. The result is a valid, but empty class.
  28. .sp
  29. .uh EXAMPLE
  30. .lp
  31. .nf
  32. .ft C
  33. /* Remove all employees who make over $30,000 */
  34.  
  35. delete emp where emp.sal > 30000
  36. .ft
  37. .fi
  38. .sp
  39. .ft C
  40. /* Clear the hobbies class */
  41.  
  42. delete hobbies
  43. .ft
  44. .uh "SEE ALSO"
  45. .lp
  46. destroy(commands).
  47.